package com.information.manage.MaintenanceRecord.service.impl;

import com.information.manage.MaintenanceRecord.mapper.BczhuyouMapper;
import com.information.manage.MaintenanceRecord.pojo.Bczhuyou;
import com.information.manage.MaintenanceRecord.service.BczhuyouService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BczhuyouServiceImpl implements BczhuyouService {
    @Autowired
    private BczhuyouMapper bczhuyouMapper;

    @Override
    public List<Bczhuyou> selectAll() {
        return bczhuyouMapper.selectAll();
    }

    @Override
    public void addMaintBczhuyou(Bczhuyou bczhuyou) {
        bczhuyouMapper.insert(bczhuyou);
    }

    @Override
    public void updateMaintBczhuyou(Bczhuyou bczhuyou) {
        bczhuyouMapper.update(bczhuyou);
    }

    @Override
    public void deleteMaintBczhuyou(Integer bczyid) {
        bczhuyouMapper.delete(bczyid);
    }

    @Override
    public void logicDeleteMaintBczhuyou(Integer bczyid) {
        bczhuyouMapper.logicDelete(bczyid);
    }
}